package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 轮播图配置对象 carousel
 * 
 * @author zhang
 * @date 2025-07-14
 */
public class Carousel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 轮播图编号 */
    private Long carouselId;

    /** 轮播图片地址 */
    @Excel(name = "轮播图片地址")
    private String carouselPhoto;

    /** 轮播图跳转链接 */
    @Excel(name = "轮播图跳转链接")
    private String carouselHref;

    /** 排序值 */
    @Excel(name = "排序值")
    private Long carouselSort;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime carouselAddtime;

    public void setCarouselId(Long carouselId) 
    {
        this.carouselId = carouselId;
    }

    public Long getCarouselId() 
    {
        return carouselId;
    }

    public void setCarouselPhoto(String carouselPhoto) 
    {
        this.carouselPhoto = carouselPhoto;
    }

    public String getCarouselPhoto() 
    {
        return carouselPhoto;
    }

    public void setCarouselHref(String carouselHref) 
    {
        this.carouselHref = carouselHref;
    }

    public String getCarouselHref() 
    {
        return carouselHref;
    }

    public void setCarouselSort(Long carouselSort) 
    {
        this.carouselSort = carouselSort;
    }

    public Long getCarouselSort() 
    {
        return carouselSort;
    }

    public void setCarouselAddtime(LocalDateTime carouselAddtime)
    {
        this.carouselAddtime = carouselAddtime;
    }

    public LocalDateTime getCarouselAddtime()
    {
        return carouselAddtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carouselId", getCarouselId())
            .append("carouselPhoto", getCarouselPhoto())
            .append("carouselHref", getCarouselHref())
            .append("carouselSort", getCarouselSort())
            .append("carouselAddtime", getCarouselAddtime())
            .toString();
    }
}
